<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h1>{{num}}</h1>
        <div v-text="message"></div>
        <!--在网络延迟下会出现暂时的{{}}-->
        {{message}}
        <hr>
        <div v-html="message"></div>
    </div>
</body>

<script src="./node_modules/vue/dist/vue.js"></script>
<script>
    ///new vue实例
    new Vue({
            el:"#app",
            // data:{
            //     name: "李四刚"
            // }
            data(){
                return {
                    message:"<a href='www.baidu.com'>百度一下</a>",
                    num:0
                }
            }
        })
</script>

</html>